Communication matching method, user equipment and base station

ABSTRACT

The present invention provides a communication matching method, a user equipment and a base station. The communication matching method includes: obtaining, by a second user equipment supporting a D2D function, D2D capability information of a serving base station of a cell to which the second user equipment currently belongs; obtaining, by the second user equipment, information, which is broadcasted by a first user equipment supporting the D2D function, of the first user equipment after determining that the cell to which the second user equipment currently belongs supports the D2D function according to the D2D capability information; performing, by the second user equipment, communication matching with the first user equipment according to the information of the first user equipment and the D2D capability information of the serving base station of the cell to which the second user equipment currently belongs.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.14/266,320, filed on Apr. 30, 2014, which is a continuation ofInternational Patent Application No. PCT/CN2012/084100, filed on Nov. 5,2012, which claims priority to Chinese Patent Application No.201110345913.3, filed on Nov. 4, 2011. The afore-mentioned patentapplications are hereby incorporated by reference in their entireties.

TECHNICAL FIELD

Embodiments of the present invention relate to the field ofcommunication technologies and, in particular, to a communicationmatching method, a user equipment and a base station.

BACKGROUND

Device to device (Device to Device, hereinafter abbreviated as: D2D)communication technology can implement services and data applications oflocal ad hoc (ad-hoc) network and short-distance communications.

In order to improve spectrum utilization, the D2D system and thecellular system share the same resources. When a D2D terminal in the D2Dsystem accesses a cellular system, it should follow the time and timeslots of the cellular system. The D2D system can support services suchas information sharing, gaming, social network service and mobileadvertising.

In the prior art, a D2D terminal in the D2D system uses its own sensingfunction, and autonomously performs communicate matching with other D2Dterminals according to the sensing results. The process does not involvethe control and assignation of evolved packet core (Evolved Packet Core;hereinafter abbreviated as: EPC)/evolved universal mobiletelecommunications system terrestrial radio access network (EvolvedUniversal Mobile Telecommunications System Terrestrial Radio AccessNetwork; hereinafter abbreviated as: E-UTRAN), and it does not involveauthentication and authorization of the network service provider. Inaddition, the existing communication matching technology can not involvethe capacity and topology of the base station. These factors may lead tofailure and anomaly of the D2D process.

SUMMARY

Embodiments of the present invention provide a communication matchingmethod, a user equipment and a base station, so as to realizing that thecommunication matching between user equipments supporting the D2Dfunction is performed according to information of the user equipment andcapability of the base station, so that the success rate ofcommunication matching is improved.

An embodiment of the present invention provides a communication matchingmethod, including:

obtaining, by a second user equipment supporting a device to device(D2D) function, D2D capability information of a serving base station ofa cell to which the second user equipment currently belongs;

obtaining, by the second user equipment, information, which isbroadcasted by a first user equipment supporting the D2D function, ofthe first user equipment after determining that the cell to which thesecond user equipment currently belongs supports the D2D functionaccording to the D2D capability information;

performing, by the second user equipment, communication matching withthe first user equipment according to the information of the first userequipment and the D2D capability information of the serving base stationof the cell to which the second user equipment currently belongs.

An embodiment of the present invention further provides a communicationmatching method, including:

receiving, by a serving base station of a cell to which a second userequipment supporting a device to device, D2D, function currentlybelongs, a connection establishment message sent by the second userequipment, where the connection establishment message is sent to theserving base station of the cell to which the second user equipmentcurrently belongs by the second user equipment after the second userequipment determines that communication matching with a first userequipment needs to be performed according to information of the firstuser equipment supporting the D2D function;

performing, by the serving base station of the cell to which the seconduser equipment currently belongs, the communication matching between thesecond user equipment and the first user equipment, according to theconnection establishment message and type information of a D2Dcapability supported by the serving base station of the cell to whichthe second user equipment currently belongs.

An embodiment of the present invention further provides a userequipment, the user equipment is a second user equipment supporting adevice to device (D2D) function, the user equipment includes: anobtaining module, a determining module, and a communication matchingmodule;

where the obtaining module is configured to obtain D2D capabilityinformation of a serving base station of a cell to which the second userequipment currently belongs, and to obtain information, which isbroadcasted by a first user equipment supporting the D2D function, ofthe first user equipment after the determining module determines thatthe cell to which the second user equipment currently belongs supportsthe D2D function according to the D2D information;

the determining module is configured to determine that the cell to whichthe second user equipment currently belongs supports the D2D functionaccording to the D2D information that the obtaining module obtained;

the communication matching module is configured to perform communicationmatching with the first user equipment according to the information ofthe first user equipment obtained by the obtaining module and the D2Dcapability information of the serving base station of the cell to whichthe second user equipment currently belongs obtained by the obtainingmodule.

An embodiment of the present invention further provides a base station,the base station is a serving base station of a cell to which a seconduser equipment supporting a device to device (D2D) function currentlybelongs, the base station includes:

a receiving module, configured to receive a connection establishmentmessage sent by the second user equipment, where the connectionestablishment message is sent to the serving base station of the cell towhich the second user equipment currently belongs after the second userequipment determines that communication matching with a first userequipment needs to be performed according to information of the firstuser equipment supporting the D2D function;

a matching module, configured to perform the communication matchingbetween the second user equipment and the first user equipment,according to the connection establishment message received by thereceiving module and type information of a D2D capability supported bythe serving base station of the cell to which the second user equipmentcurrently belongs.

In embodiments of the present invention, the second user equipmentperforms communication matching with the first user equipment accordingto the D2D capability information of the serving base station of thecell to which the second user equipment currently belongs and theinformation of the first user equipment, therefore, the communicationmatching between the user equipments which support the D2D function canbe performed according to the information of the user equipment and thecapability of the base station, thereby avoiding the problems that theD2D communication matching procedure fails or becomes abnormal becausethe base station does not support the D2D capability or the base stationhas limited capability of supporting D2D, thus the success rate ofcommunication matching can be improved.

BRIEF DESCRIPTION OF DRAWINGS

In order to illustrate the technical solutions in embodiments of thepresent invention or in the prior art more clearly, accompanyingdrawings needed in the embodiments or the prior art are illustratedbriefly as follows. Apparently, the accompanying drawings in thefollowing description are merely some embodiments of the presentinvention, and persons of ordinary skill in the art may still deriveother drawings from these accompanying drawings without creative effort.

FIG. 1 is a schematic flowchart of a communication matching methodaccording to an embodiment of the present invention;

FIG. 2 is a schematic flowchart of a communication matching methodaccording to another embodiment of the present invention;

FIG. 3 is a schematic flowchart of a communication matching methodaccording to another embodiment of the present invention;

FIG. 4 is a schematic flowchart of a communication matching methodaccording to another embodiment of the present invention;

FIG. 5 is a schematic flowchart of a communication matching methodaccording to another embodiment of the present invention;

FIG. 6 is a schematic flowchart of a communication matching methodaccording to another embodiment of the present invention;

FIG. 7 is a schematic structural diagram of a user equipment accordingto an embodiment of the present invention;

FIG. 8 is a schematic structural diagram of a user equipment accordingto another embodiment of the present invention;

FIG. 9 is a schematic structural diagram of a base station according toan embodiment of the present invention; and

FIG. 10 is a schematic structural diagram of a base station according toanother embodiment of the present invention.

DESCRIPTION OF EMBODIMENTS

To make the objectives, technical solutions, and advantages ofembodiments of the present invention clearer, the following clearly andcomprehensively describes the technical solutions in embodiments of thepresent invention with reference to the accompanying drawings inembodiments of the present invention. Apparently, the describedembodiments are merely a part rather than all embodiments of the presentinvention. All other embodiments obtained by persons of ordinary skillin the art based on embodiments of the present invention withoutcreative effort shall fall within the protection scope of the presentinvention.

FIG. 1 is a schematic flowchart of a communication matching methodaccording to an embodiment of the present invention. As shown in FIG. 1,the communication matching method may include:

Step 101: A second user equipment supporting a D2D function obtains D2Dcapability information of a serving base station of a cell to which thesecond user equipment currently belongs.

Specifically, the second user equipment may receive a broadcast messagesent by the serving base station of the cell to which the second userequipment currently belongs, the broadcast message carries the D2Dcapability information; or, in the process that the second userequipment establishes a radio resource control (Radio Resource Control,hereinafter abbreviated as RRC) connection with the serving base stationof the cell to which the second user equipment currently belongs, thesecond user equipment receive a RRC connection message sent by theserving base station of the cell to which the second user equipmentcurrently belongs, and the RRC connection message carries the D2Dcapability information.

Specifically, the D2D capability information is used for indicatingwhether the serving base station of the cell to which the second userequipment currently belongs supports the D2D function; when the D2Dcapability information indicates that the serving base station of thecell to which the second user equipment currently belongs supports theD2D function, the second user equipment may determine that the cell towhich the second user equipment currently belongs supports the D2Dfunction.

Step 102: The second user equipment obtains information, which isbroadcasted by a first user equipment supporting the D2D function, ofthe first user equipment after determining that the cell to which thesecond user equipment currently belongs supports the D2D functionaccording to the D2D capability information.

In this embodiment, the step of broadcasting, by the first userequipment supporting the D2D function, the information of the first userequipment may be that: the first user equipment obtains the D2Dcapability information of a serving base station of a cell to which thefirst user equipment currently belongs; the first user equipment obtainsa resource for broadcasting the information of the first user equipmentafter determining that the cell to which the first user equipmentcurrently belongs supports the D2D function according to the D2Dcapability information; the first user equipment broadcasts theinformation of the first user equipment on the obtained resource.

In this embodiment, the information of the first user equipment includesone of or a combination of: an identifier, a serving code and serviceinformation of application layer of the first user equipment; when thefirst user equipment is in demand of service, the information of thefirst user equipment further includes the demand information of thefirst user equipment.

Herein the identifier of the first user equipment includes one of or acombination of: an application layer identifier, a physical identifier,a non-access stratum identifier (Non-Access Stratum Identifier,hereinafter abbreviated as: NAS ID) and an access stratum identifier(Access Stratum Identifier, hereinafter abbreviated as: AS ID) of thefirst user equipment.

For example, the application layer identifier may be a user name of thefirst user equipment which is represented by one of or a combination of:a character string, a number, and a character; the physical identifiermay be: a particular code sequence, such as international mobile subscriber identification (International Mobile Sub scriber Identification,hereinafter abbreviated as: IMSI); the NAS ID may be a serving temporarymobile subscriber identifier (Serving Temporary Mobile SubscriberIdentifier, hereinafter abbreviated as: s-TMSI) or a global uniquetemporary identifier(Global Unique Temporary Identifier, hereinafterabbreviated as: GUTI), if the first user equipment is in idle state, theold s-TMSI or GUTI stored at the last time may be used; if the firstuser equipment is in connection state, the current s-TMSI or GUTI may beused; the AS ID may be cell radio network temporary identifier (CellRadio Network Temporary Identifier, hereinafter abbreviated as: C-RNTI)or D-RNTI (i.e., the radio network temporary identifier (Radio NetworkTemporary Identifier, hereinafter abbreviated as: RNTI) used for the D2Dfunction);

The service information of application layer includes the serviceinformation that can be interpreted by a user, the service informationthat can be interpreted by a user includes service type and/or servicecontent, for instance, the service content may be advertisinginformation, a video of a movie or a game, and the like.

The serving code may be a character, a character string, or a numbersequence, and the serving code is used for indicating the serviceinformation of application layer.

The demand information may be information such as ‘want to rent’ or‘want to buy’.

Step 103: The second user equipment performs communication matching withthe first user equipment according to the information of the first userequipment and the D2D capability information of the serving base stationof the cell to which the second user equipment currently belongs.

In an implementation of the this embodiment, the information of thefirst user equipment further includes information of the serving celland/or the serving base station of the first user equipment, where theinformation of the serving cell and/or the serving base station of thefirst user equipment includes information such as the identifier of theserving cell and/or the serving base station of the first userequipment, and the D2D capability information of the serving basestation of the first user equipment. When the D2D capability informationindicates that the serving base station of the cell to which the seconduser equipment currently belongs supports the D2D function, the D2Dcapability information further includes type information of the D2Dcapability supported by the serving base station of the cell to whichthe second user equipment currently belongs.

The type information of the D2D capability may include: the serving basestation of the cell to which the second user equipment currently belongssupports a D2D communication function between the second user equipmentand another user equipment, besides the second user equipment, which isin the cell to which the second user equipment currently belongs; or theserving base station of the cell to which the second user equipmentcurrently belongs supports a D2D communication function between thesecond user equipment and another user equipment which is in anothercell, besides the cell to which the second user equipment currentlybelongs, served by the serving base station of the cell to which thesecond user equipment currently belongs; or the serving base station ofthe cell to which the second user equipment currently belongs supports aD2D communication function between the second user equipment and anotheruser equipment which is served by any other base station except theserving base station of the cell to which the second user equipmentcurrently belongs; or the serving base station of the cell to which thesecond user equipment currently belongs supports a D2D communicationfunction between the second user equipment and another user equipmentwhich is served by one of limited base stations except the serving basestation of the cell to which the second user equipment currentlybelongs; or the serving base station of the cell to which the seconduser equipment currently belongs supports a D2D communication functionbetween the second user equipment and any user equipment which is inanother radio access system except a radio access system to which thesecond user equipment belongs; where, the statement that the servingbase station of the cell to which the second user equipment currentlybelongs supports a D2D communication function between the second userequipment and another user equipment which is served by one of limitedbase stations except the serving base station of the cell to which thesecond user equipment currently belongs, means that the serving basestation of the cell to which the second user equipment currently belongssupports only the D2D connection between the second user equipment andanother user equipment which is served by a base station in a range ofat least one of limited base stations, except the serving base stationof the cell to which the second user equipment currently belongs, whenthe serving base station of the cell to which the second user equipmentcurrently belongs supports the D2D communication function between thesecond user equipment and another user equipment which is served by oneof limited base stations except the serving base station of the cell towhich the second user equipment currently belongs, the serving basestation of the cell to which the second user equipment currently belongsneeds to provide a list of base stations which can be possibly matched.

In this implementation, the second user equipment may determine whetherthe communication matching with the first user equipment needs to beperformed according to the information of the first user equipment; ifthe second user equipment determines that the communication matchingwith the first user equipment needs to be performed, the second userequipment may determine that the communication matching with the firstuser equipment is successful, according to the information of theserving cell and/or the serving base station of the first userequipment, and the type information of the D2D capability supported bythe serving base station of the cell to which the second user equipmentcurrently belongs.

For example, assuming that the second user equipment needs to obtaininformation of a certain game, and the service information ofapplication layer of the first user equipment which is broadcasted bythe first user equipment includes the information of the game that thesecond user equipment needs to obtain, the second user equipmentdetermines that the communication matching with the first user equipmentneeds to be performed; conversely, if the service information ofapplication layer of the first user equipment which is broadcasted bythe first user equipment does not include the information of the gamethat the second user equipment needs to obtain, the second userequipment determines that the communication matching with the first userequipment does not need to be performed. Of course, this is only anexample of determining by the second user equipment whether thecommunication matching with the first user equipment needs to beperformed, the present invention is not limited thereto, and the seconduser equipment may also determine whether the communication matchingwith the first user equipment needs to be performed according to otherinformation in the information of the first user equipment, for example,the application layer identifier of the first user equipment, and thelike, which will not be limited herein.

Then, if the D2D capability type information of the serving base stationof the cell to which the second user equipment currently belongs is thatthe serving base station of the cell to which the second user equipmentcurrently belongs supports a D2D communication function between thesecond user equipment and another user equipment, besides the seconduser equipment, which is in the cell to which the second user equipmentcurrently belongs, or the serving base station of the cell to which thesecond user equipment currently belongs supports a D2D communicationfunction between the second user equipment and another user equipmentwhich is in another cell, besides the cell to which the second userequipment currently belongs, served by the serving base station of thecell to which the second user equipment currently belongs, while theserving base station of the first user equipment and the serving basestation of the cell to which the second user equipment currently belongsare different, the second user equipment determines that thecommunication matching with the first user equipment fails; while theserving base station of the first user equipment is the same with theserving base station of the cell to which the second user equipmentcurrently belongs, the second user equipment determines that thecommunication matching with the first user equipment succeeds.

In another implementation of this embodiment, the identifier of thefirst user equipment includes a physical identifier, and one of or acombination of an application layer identifier, a non-access stratumidentifier and an access stratum identifier of the first user equipment,where the physical identifier may be scrambled by using the identifierof the serving cell and/or the serving base station of the first userequipment.

In this implementation, the second user equipment may performdescrambling to the physical identifier of the first user equipment inthe information of the first user equipment, by using the identifier ofthe serving cell or the identifier of the serving base station of thesecond user equipment, or by using an identifier of a neighboring cellor a neighboring base station of the second user equipment, and thenobtain the identifier of the serving cell and/or the serving basestation of the first user equipment. Where, the identifier of theserving cell and/or the serving base station of the first user equipmentmay be: a character, a number or a character string, or a combination ofthese three, which can uniquely identify the serving cell and/or theserving base station of the first user equipment. The specific forms ofthe identifier of the serving cell and/or the serving base station ofthe first user equipment will not be limited by embodiments of thepresent invention. Then, the second user equipment may determine whetherthe first user equipment satisfies the communication matching condition,according to the identifier of the serving cell and/or the serving basestation of the first user equipment, and the type information of the D2Dcapability supported by the serving base station of the cell to whichthe second user equipment currently belongs. If it is determined thatthe first user equipment satisfies the communication matching condition,the second user equipment determines whether the communication matchingwith the first user equipment needs to be performed according to theinformation of the first user equipment; if the second user equipmentdetermines that the communication matching with the first user equipmentneeds to be performed, the second user equipment determines that thecommunication matching with the first user equipment is successful.

For example, if the D2D capability type information of the serving basestation of the cell to which the second user equipment currently belongsis that the serving base station of the cell to which the second userequipment currently belongs supports a D2D communication functionbetween the second user equipment and another user equipment, besidesthe second user equipment, which is in the cell to which the second userequipment currently belongs, or the serving base station of the cell towhich the second user equipment currently belongs supports a D2Dcommunication function between the second user equipment and anotheruser equipment which is in another cell, besides the cell to which thesecond user equipment currently belongs, served by the serving basestation of the cell to which the second user equipment currentlybelongs, while the serving base station of the first user equipment andthe serving base station of the second user equipment are different, thesecond user equipment determines that the first user equipment does notsatisfy the communication matching condition, and then determines thatthe communication matching with the first user equipment is failed;whereas, if the serving base station of the first user equipment and theserving base station of the second user equipment are the same, thesecond user equipment determines that the first user equipment satisfiesthe communication matching condition, and then determines whether thecommunication matching with the first user equipment needs to beperformed. Assuming that the second user equipment needs to obtaininformation of a certain game, and the service information ofapplication layer of the first user equipment which is broadcasted bythe first user equipment includes the information of the game that thesecond user equipment needs to obtain, in this case, the second userequipment determines that the communication matching with the first userequipment needs to be performed and then determines that thecommunication matching with the first user equipment is successful.

It should be noted that, the base station in embodiments of the presentinvention may be an evolved NodeB (evolved NodeB, hereinafterabbreviated as eNB) and the like, the specific form of the base stationis not to be limited in embodiments of the present invention, similarlyhereinafter.

According to the above embodiment, the communication matching betweenthe user equipments which support the D2D function can be performedaccording to the information of the user equipment and the capability ofthe base station, thereby avoiding the problems that the D2Dcommunication matching procedure fails or becomes abnormal because thebase station does not support the D2D capability or the base station haslimited capability of supporting D2D, thus the success rate ofcommunication matching can be improved.

FIG. 2 is a schematic flowchart of a communication matching methodaccording to another embodiment of the present invention. As shown inFIG. 2, the communication matching method may include:

Step 201: The serving base station of the cell to which the second userequipment supporting the D2D function currently belongs receives aconnection establishment message sent by the second user equipment,where the connection establishment message is sent to the serving basestation of the cell to which the second user equipment currently belongsby the second user equipment after the second user equipment determinesthat the communication matching with a first user equipment needs to beperformed according to information of the first user equipmentsupporting the D2D function.

In this embodiment, the information of the first user equipment includesone of or a combination of: an identifier, a serving code and serviceinformation of application layer of the first user equipment; when thefirst user equipment is in demand of service, the information of thefirst user equipment may further includes the demand information of thefirst user equipment.

Herein the identifier of the first user equipment includes one of or acombination of: an application layer identifier, a physical identifier,a NAS ID and an AS ID of the first user equipment.

For example, the application layer identifier may be a user name of thefirst user equipment which is represented by one of or a combination of:a character string, a number, and a character; physical identifier maybe: a particular code sequence, such as IMSI; the NAS ID may be ans-TMSI or a GUTI, if the first user equipment is in idle state, the olds-TMSI or GUTI stored at the last time may be used; if the first userequipment is in connection state, the current s-TMSI or GUTI may beused; the AS ID may be a C-RNTI or a D-RNTI (i.e., the RNTI used for theD2D function).

The service information of application layer includes the serviceinformation that can be interpreted by a user, the service informationthat can be interpreted by a user includes service type and/or servicecontent, for instance, the service content may be advertisinginformation, a video of a movie or a game, and the like.

The serving code may be a character, a character string, or a numbersequence, and the serving code is used for indicating the serviceinformation of application layer.

The demand information may be information such as ‘want to rent’ or‘want to buy’.

For example, assuming that the second user equipment needs to obtaininformation of a certain game, and the service information ofapplication layer of the first user equipment which is broadcasted bythe first user equipment includes the information of the game that thesecond user equipment needs to obtain, the second user equipmentdetermines that the communication matching with the first user equipmentneeds to be performed.

Step 202: The serving base station of a cell to which the second userequipment currently belongs performs communication matching between thesecond user equipment and the first user equipment, according to theconnection establishment message and the type information of the D2Dcapability supported by the serving base station of the cell to whichthe second user equipment currently belongs.

The type information of the D2D capability may include: the serving basestation of the cell to which the second user equipment currently belongssupports a D2D communication function between the second user equipmentand another user equipment, besides the second user equipment, which isin the cell to which the second user equipment currently belongs; or theserving base station of the cell to which the second user equipmentcurrently belongs supports a D2D communication function between thesecond user equipment and another user equipment which is in anothercell, besides the cell to which the second user equipment currentlybelongs, served by the serving base station of the cell to which thesecond user equipment currently belongs; or the serving base station ofthe cell to which the second user equipment currently belongs supports aD2D communication function between the second user equipment and anotheruser equipment which is served by any other base station except theserving base station of the cell to which the second user equipmentcurrently belongs; or the serving base station of the cell to which thesecond user equipment currently belongs supports a D2D communicationfunction between the second user equipment and another user equipmentwhich is served by one of limited base stations except the serving basestation of the cell to which the second user equipment currentlybelongs; or the serving base station of the cell to which the seconduser equipment currently belongs supports a D2D communication functionbetween the second user equipment and any user equipment which is inanother radio access system except a radio access system to which thesecond user equipment belongs; where, the statement that the servingbase station of the cell to which the second user equipment currentlybelongs supports a D2D communication function between the second userequipment and another user equipment which is served by one of limitedbase stations except the serving base station of the cell to which thesecond user equipment currently belongs, means that the serving basestation of the cell to which the second user equipment currently belongssupports only the D2D connection between the second user equipment and auser equipment which is served by a base station in a range of at leastone of limited base stations, except the serving base station of thecell to which the second user equipment currently belongs, when theserving base station of the cell to which the second user equipmentcurrently belongs supports the D2D communication function between thesecond user equipment and another user equipment which is served by oneof limited base stations except the serving base station of the cell towhich the second user equipment currently belongs, the serving basestation of the cell to which the second user equipment currently belongsneeds to provide a list of base stations which can be possibly matched.

In an implementation of this embodiment, the information of the firstuser equipment may further include information of the serving celland/or the serving base station of the first user equipment, where theinformation of the serving cell and/or the serving base station of thefirst user equipment includes information such as the identifier of theserving cell and/or the serving base station of the first userequipment, and the D2D capability information of the serving basestation of the first user equipment. The above connection establishmentmessage carries D2D establishment type information, the identifier ofthe second user equipment, the identifier of the first user equipment,and information of the serving cell and/or the serving base station ofthe first user equipment.

In this implementation, the serving base station of the cell to whichthe second user equipment currently belongs may determine that thecommunication matching with the first user equipment is successfulaccording to the information of the serving cell and/or the serving basestation of the first user equipment which is carried in the aboveconnection establishment message and the type information of the D2Dcapability supported by the serving base station of the cell to whichthe second user equipment currently belongs.

For example, if the D2D capability type information of the serving basestation of the cell to which the second user equipment currently belongsis that the serving base station of the cell to which the second userequipment currently belongs supports a D2D communication functionbetween the second user equipment and another user equipment, besidesthe second user equipment, which is in the cell to which the second userequipment currently belongs, or the serving base station of the cell towhich the second user equipment currently belongs supports a D2Dcommunication function between the second user equipment and anotheruser equipment which is in another cell, besides the cell to which thesecond user equipment currently belongs, served by the serving basestation of the cell to which the second user equipment currentlybelongs, while the serving base station of the first user equipment andthe serving base station of the second user equipment are different, theserving base station of the cell to which the second user equipmentcurrently belongs may determine that the communication matching with thefirst user equipment is failed; whereas, if the serving base station ofthe first user equipment and the serving base station of the second userequipment are the same, the serving base station of the cell to whichthe second user equipment currently belongs may determine that thecommunication matching with the first user equipment is successful.

In another implementation of this embodiment, the above connectionestablishment message carries the D2D establishment type information,the identifier of the second user equipment, and the identifier of thefirst user equipment.

In this implementation, the serving base station of the cell to whichthe second user equipment currently belongs firstly searches theidentifier of the first user equipment from a user equipment contextstored in the base station itself.

If the identifier of the first user equipment is found, the serving basestation of the cell to which the second user equipment currently belongsdetermines that the serving base station itself is the serving basestation of the first user equipment, and determines that thecommunication matching between the second user equipment and the firstuser equipment is successful, according to the type information of theD2D capability supported by the serving base station of the cell towhich the second user equipment currently belongs.

If the identifier of the first user equipment is not found in the userequipment context stored in the serving base station itself by theserving base station of the cell to which the second user equipmentcurrently belongs, the serving base station of the cell to which thesecond user equipment currently belongs determines that the serving basestation itself is not the serving base station of the first userequipment, and then queries to a core network device to obtaininformation of the serving base station of the first user equipment,where the information of the serving base station of the first userequipment includes information such as the identifier of the servingbase station of the first user equipment and the D2D capabilityinformation of the serving base station of the first user equipment;then, the serving base station of the cell to which the second userequipment currently belongs determines that the communication matchingbetween the second user equipment and the first user equipment issuccessful, according to the information of the serving base station ofthe first user equipment and the type information of the D2D capabilitysupported by the serving base station of the cell to which the seconduser equipment currently belongs.

According to the above embodiment, the communication matching betweenthe user equipments which support the D2D function can be performedaccording to the information of the user equipment and the capability ofthe base station, thereby avoiding the problems that the D2Dcommunication matching procedure has failed or becomes abnormal becausethe base station does not support the D2D capability or the base stationhas limited capability of supporting D2D, thus the success rate ofcommunication matching can be improved.

FIG. 3 is a schematic flowchart of a communication matching methodaccording to another embodiment of the present invention. As shown inFIG. 3, the communication matching method may include:

Step 301: UE1, which supports a D2D function, obtains D2D capabilityinformation of a serving base station of a cell to which the UE1currently belongs.

The cell to which UE1 currently belongs includes the destination cellUE1 hand-over to, or the cell to which UE1 belongs when UE1 was switchedon.

Specifically, UE1 may receive a broadcast message sent by the servingbase station of the cell to which UE1 currently belongs, the broadcastmessage carries the D2D capability information; or, in the process thatUE1 establishes a RRC connection with the serving base station of thecell to which UE1 currently belongs, UE1 receive a RRC connectionmessage sent by the serving base station of the cell to which UE1currently belongs, where the RRC connection message carries the D2Dcapability information.

In this embodiment, the D2D capability information is used forindicating whether the serving base station of the cell to which UE1currently belongs supports the D2D function; if the D2D capabilityinformation indicates that the serving base station of the cell to whichUE1 currently belongs supports the D2D function, UE1 may determine thatthe cell to which UE1 currently belongs supports the D2D function.

Furthermore, if the D2D capability information indicates that theserving base station of the cell to which UE1 currently belongs supportsthe D2D function, the D2D capability information may further include thetype information of the D2D capability supported by the serving basestation of the cell to which UE1 currently belongs. The type informationof the D2D capability may be: the serving base station of the cell towhich UE1 currently belongs supports a D2D communication functionbetween UE1 and another UE, besides UE1, which is in the cell to whichUE1 currently belongs; or the serving base station of the cell to whichUE1 currently belongs supports a D2D communication function between UE1and another UE which is in another cell, besides the cell to which UE1currently belongs, served by the serving base station of the cell towhich UE1 currently belongs; or the serving base station of the cell towhich UE1 currently belongs supports a D2D communication functionbetween UE1 and another UE which is served by any other base stationexcept the serving base station of the cell to which UE1 currentlybelongs; or the serving base station of the cell to which UE1 currentlybelongs supports a D2D communication function between UE1 and another UEwhich is served by one of limited base stations except the serving basestation of the cell to which UE1 currently belongs; or the serving basestation of the cell to which UE1 currently belongs supports a D2Dcommunication function between UE1 and any UE which is in another radioaccess system except a radio access system to which UE1 belongs; where,the statement that the serving base station of the cell to which UE1currently belongs supports a D2D communication function between UE1 andanother UE which is served by one of limited base stations except theserving base station of the cell to which UE1 currently belongs, meansthat the serving base station of the cell to which UE1 currently belongssupports only the D2D connection between UE1 and a UE which is served bya base station in a range of at least one of limited base stations,except the serving base station of the cell to which UE1 currentlybelongs, when the serving base station of the cell to which UE1currently belongs supports the D2D communication function between UE1and another UE which is served by one of limited base stations exceptthe serving base station of the cell to which UE1 currently belongs, theserving base station of the cell to which UE1 currently belongs needs toprovide a list of base stations which can be possibly matched.

Step 302: If the cell to which UE1 currently belongs supports the D2Dfunction, UE1 turns on the D2D function, where the D2D function includesfunctions of obtaining resources for broadcasting information of UE1,broadcasting information of UE1, and communication matching, and so on.

In this embodiment, if the cell to which UE1 currently belongs does notsupport the D2D function, UE1 will not turn on the D2D function.

Step 303: UE1 obtains resources for broadcasting information of UE1, andbroadcasts the information of UE1 on the obtained resources.

In this embodiment, the information of UE1 includes one of or acombination of: an identifier, a serving code and service information ofapplication layer of UE1; when UE1 is in demand of service, theinformation of UE1 further includes the demand information of UE1.

Herein the identifier of UE1 includes one of or a combination of: anapplication layer identifier, a physical identifier, a NAS ID and an ASID of UE1.

For example, the application layer identifier may be a user name of UE1which is represented by one of or a combination of: a character string,a number, and a character; physical identifier may be: a particular codesequence, such as IMS; the NAS ID may be an s-TMSI or a GUTI, if thefirst user equipment is in idle state, the old s-TMSI or GUTI stored atthe last time may be used; if the first user equipment is in connectionstate, the current s-TMSI or GUTI may be used; the AS ID may be a C-RNTIor a D-RNTI (i.e., the RNTI used for the D2D function).

The service information of application layer includes the serviceinformation that can be interpreted by a user, the service informationthat can be interpreted by a user includes service type and/or servicecontent, for instance, the service content may be advertisinginformation, a video of a movie or a game, and the like.

The serving code may be a character, a character string, or a numbersequence, and the serving code is used for indicating the serviceinformation of application layer.

The demand information may be information such as ‘want to rent’ or‘want to buy’.

Furthermore, in this embodiment, the information of UE1 further includesinformation of the serving cell and/or the serving base station of UE1,herein the information of the serving cell and/or the serving basestation of UE1 includes information such as the identifier of theserving cell and/or the serving base station of UE1, and the D2Dcapability information of the serving base station of UE1.

Step 304: UE2, which supports a D2D function, determines whether thecommunication matching with UE1 needs to be performed according to theinformation of UE1 that is broadcasted by the UE1, when UE2 learnsthrough sensing technology or through searching and measuring other UEsupporting the D2D function, that UE1 which can be possibly matchedexists; if UE2 determines that the communication matching with UE1 needsto be performed, UE2 determines that the communication matching with UE1succeeds according to the information of the serving cell and/or theserving base station of UE1, and the type information of the D2Dcapability supported by the serving base station of the cell to whichUE2 currently belongs.

In this embodiment, before the step 304, similar with UE1, UE2 alsoperforms the method described in the step 301 to the step 303 to obtainthe D2D capability information of a serving base station of a cell towhich UE2 currently belongs, turn on the D2D function and broadcast theinformation of UE2.

For example, assuming that UE2 needs to obtain information of a certaingame, and the service information of application layer of UE1 which isbroadcasted by UE1 includes the information of the game that UE2 needsto obtain, UE2 determines that the communication matching with UE1 needsto be performed; conversely, if the service information of applicationlayer of UE1 which is broadcasted by UE1 does not include theinformation of the game that UE2 needs to obtain, UE2 determines thatthe communication matching with UE1 does not need to be performed. Ofcourse, this is only an example of determining by UE2 whether thecommunication matching with UE1 needs to be performed, the presentinvention is not limited thereto, and UE2 may also determine whether thecommunication matching with UE1 needs to be performed according to otherinformation in the information of UE1, for example, the applicationlayer identifier of UE1, and the like, which will not be limited herein.

Then, if the D2D capability type information of the serving base stationof the cell to which UE2 currently belongs is that the serving basestation of the cell to which UE2 currently belongs supports a D2Dcommunication function between UE2 and another UE, besides UE2, which isin the cell to which UE2 currently belongs, or the serving base stationof the cell to which UE2 currently belongs supports a D2D communicationfunction between UE2 and another UE which is in another cell, besidesthe cell to which UE2 currently belongs, served by the serving basestation of the cell to which UE2 currently belongs, while the servingbase station of UE1 and the serving base station of the cell to whichUE2 currently belongs are different, UE2 determines that thecommunication matching with UE1 fails; while the serving base station ofUE1 is the same with the serving base station of the cell to which UE2currently belongs, UE2 determines that the communication matching withUE1 succeeds.

Step 305: After determining that the communication matching with UE1succeeds, UE2 starts a D2D connection establishment process.

Then, UE1, UE2, the serving base station of a cell to which UE1currently belongs, the serving base station of a cell to which UE2currently belongs (not shown in FIG. 3), mobility management entity(Mobility Management Entity, hereinafter abbreviated as: MME), gateway(Gateway, hereinafter abbreviated as: GW) and home subscriber server(Home Subscriber Server, hereinafter abbreviated as: HSS) interact tocomplete the process of establishing Ud bearer.

According to the above embodiment, the communication matching betweenthe user equipments which support the D2D function can be performedaccording to the information of the user equipment and the capability ofthe base station, thereby avoiding the problems that the D2Dcommunication matching procedure fails or becomes abnormal because thebase station does not support the D2D capability or the base station haslimited capability of supporting D2D, thus the success rate ofcommunication matching can be improved.

FIG. 4 is a schematic flowchart of a communication matching methodaccording to another embodiment of the present invention. As shown inFIG. 4, the communication matching method may include:

Step 401: UE1, which supports a D2D function, obtains D2D capabilityinformation of a serving base station of a cell to which UE1 currentlybelongs.

The cell to which UE1 currently belongs includes the destination cellUE1 hand-over to, or the cell to which UE1 belongs when UE1 was switchedon.

Specifically, UE1 may receive a broadcast message sent by the servingbase station of the cell to which UE1 currently belongs, the broadcastmessage carries the D2D capability information; or, in the process thatUE1 establishes a RRC connection with the serving base station of thecell to which UE1 currently belongs, UE1 receive a RRC connectionmessage sent by the serving base station of the cell to which UE1currently belongs, where the RRC connection message carries the D2Dcapability information.

In this embodiment, the D2D capability information is used forindicating whether the serving base station of the cell to which UE1currently belongs supports the D2D function; if the D2D capabilityinformation indicates that the serving base station of the cell to whichUE1 currently belongs supports the D2D function, UE1 may determine thatthe cell to which UE1 currently belongs supports the D2D function.

Furthermore, if the D2D capability information indicates that theserving base station of the cell to which UE1 currently belongs supportsthe D2D function, the D2D capability information may further include thetype information of the D2D capability supported by the serving basestation of the cell to which UE1 currently belongs. The type informationof the D2D capability may be: the serving base station of the cell towhich UE1 currently belongs supports a D2D communication functionbetween UE1 and another UE, besides UE1, which is in the cell to whichUE1 currently belongs; or the serving base station of the cell to whichUE1 currently belongs supports a D2D communication function between UE1and another UE which is in another cell, besides the cell to which UE1currently belongs, served by the serving base station of the cell towhich UE1 currently belongs; or the serving base station of the cell towhich UE1 currently belongs supports a D2D communication functionbetween UE1 and another UE which is served by any other base stationexcept the serving base station of the cell to which UE1 currentlybelongs; or the serving base station of the cell to which UE1 currentlybelongs supports a D2D communication function between UE1 and another UEwhich is served by one of limited base stations except the serving basestation of the cell to which UE1 currently belongs; or the serving basestation of the cell to which UE1 currently belongs supports a D2Dcommunication function between UE1 and any UE which is in another radioaccess system except a radio access system to which UE1 belongs; where,the statement that the serving base station of the cell to which UE1currently belongs supports a D2D communication function between UE1 andanother UE which is served by one of limited base stations except theserving base station of the cell to which UE1 currently belongs, meansthat the serving base station of the cell to which UE1 currently belongssupports only the D2D connection between UE1 and a UE which is served bya base station in a range of at least one of limited base stations,except the serving base station of the cell to which UE1 currentlybelongs, when the serving base station of the cell to which UE1currently belongs supports the D2D communication function between UE1and another UE which is served by one of limited base stations exceptthe serving base station of the cell to which UE1 currently belongs, theserving base station of the cell to which UE1 currently belongs needs toprovide a list of base stations which can be possibly matched.

Step 402: If the cell to which UE1 currently belongs supports the D2Dfunction, UE1 turns on the D2D function, where the D2D function includesfunctions of obtaining resources for broadcasting information of UE1,broadcasting information of UE1, and communication matching, and so on.

In this embodiment, if the cell to which UE1 currently belongs does notsupport the D2D function, UE1 will not turn on the D2D function.

Step 403: UE1 obtains resources for broadcasting information of UE1, andbroadcasts the information of UE1 on the obtained resources.

In this embodiment, the information of UE1 includes one of or acombination of: an identifier, a serving code and service information ofapplication layer of UE1; when UE1 is in demand of service, theinformation of UE1 further includes the demand information of UE1.

Herein the identifier of UE1 includes the physical identifier and one ofor a combination of: an application layer identifier, a NAS ID and an ASID of UE1.

For example, the application layer identifier may be a user name of UE1which is represented by one of or a combination of: a character string,a number, and a character; physical identifier may be: a particular codesequence, such as IMS; the NAS ID may be an s-TMSI or a GUTI, if thefirst user equipment is in idle state, the old s-TMSI or GUTI stored atthe last time may be used; if the first user equipment is in connectionstate, the current s-TMSI or GUTI may be used; the AS ID may be a C-RNTIor a D-RNTI (i.e., the RNTI used for the D2D function).

The service information of application layer includes the serviceinformation that can be interpreted by a user, the service informationthat can be interpreted by a user includes service type and/or servicecontent, for instance, the service content may be advertisinginformation, a video of a movie or a game, and the like.

The serving code may be a character, a character string, or a numbersequence, and the serving code is used for indicating the serviceinformation of application layer.

The demand information may be information such as ‘want to rent’ or‘want to buy’.

Step 404: UE2, which supports a D2D function, learns through sensingtechnology or through searching and measuring other D2D functionsupported UE, that UE1 which can be possibly matched exists, and obtainsthe identifier of the serving cell and/or the serving base station ofUE1 by descrambling the physical identifier of UE1 in the information ofthe UE by using the identifier of the serving cell or the serving basestation, or by using the identifier of the neighboring cell or theneighboring base station of UE2.

In this embodiment, the identifier of the serving cell and/or theserving base station of UE1 include: a character, a number or acharacter string, or a combination of these three, which can uniquelyidentify the serving cell and/or the serving base station of UE1. Thespecific forms of the identifier of the serving cell and/or the servingbase station of UE1 will not be limited by embodiments of the presentinvention.

Step 405: UE2 determines whether UE1 satisfies the communicationmatching condition, according to the identifier of the serving celland/or the serving base station of UE1 and the type information of theD2D capability supported by the serving base station of the cell towhich UE2 currently belongs.

In this embodiment, before the step 404, similar with UE1, UE2 alsoperforms the method described in the step 401 to the step 403 to obtainthe D2D capability information of a serving base station of a cell towhich UE2 currently belongs, turn on the D2D function and broadcast theinformation of UE2.

For example, if the D2D capability type information of the serving basestation of the cell to which UE2 currently belongs is that the servingbase station of the cell to which UE2 currently belongs supports a D2Dcommunication function between UE2 and another UE, besides UE2, which isin the cell to which UE2 currently belongs, or the serving base stationof the cell to which UE2 currently belongs supports a D2D communicationfunction between UE2 and another UE which is in another cell, besidesthe cell to which UE2 currently belongs, served by the serving basestation of the cell to which UE2 currently belongs, while the servingbase station of UE1 and the serving base station of UE2 are different,UE2 determines that UE1 does not satisfy the communication matchingcondition, and then determines that the communication matching with UE1is failed; whereas, if the serving base station of UE1 and the servingbase station of UE2 are the same, UE2 determines that UE1 satisfies thecommunication matching condition.

Step 406: If it is determined that UE1 satisfies the communicationmatching condition, UE2 determines whether the communication matchingwith UE1 needs to be performed according to the information of UE1; ifUE 2 determines that the communication matching with UE1 needs to beperformed, UE2 determines that the communication matching with UE1 issuccessful.

For example, assuming that UE2 needs to obtain information of a certaingame, and the service information of application layer of UE1 which isbroadcasted by UE1 includes the information of the game that UE2 needsto obtain, in this case, UE2 determines that the communication matchingwith UE1 needs to be performed and then determines that thecommunication matching with UE1 is successful. Of course this is only anexample of determining by UE2 whether the communication matching withUE1 needs to be performed, the present invention is not limited thereto,and UE2 may also determine whether the communication matching with UE1needs to be performed according to other information in the informationof UE1, for example, the application layer identifier of UE1, and thelike, which will not be limited herein.

Step 407: After determining that the communication matching with UE1succeeds, UE2 starts a D2D connection establishment process.

Then, UE1, UE2, the serving base station of a cell to which the UE1currently belongs, the serving base station of a cell to which the UE2currently belongs (not shown in FIG. 4), MME, GW and HSS interact tocomplete the process of establishing Ud bearer.

According to the above embodiment, the communication matching betweenthe user equipments which support the D2D function can be performedaccording to the information of the user equipment and the capability ofthe base station, thereby avoiding the problems that the D2Dcommunication matching procedure fails or becomes abnormal because thebase station does not support the D2D capability or the base station haslimited capability of supporting D2D, thus the success rate ofcommunication matching can be improved.

FIG. 5 is a schematic flowchart of a communication matching methodaccording to another embodiment of the present invention. As shown inFIG. 5, the communication matching method may include:

Step 501: UE1, which supports a D2D function, obtains resources forbroadcasting information of UE1 at the cell to which UE1 currentlybelongs, and broadcasts information of UE1 on the obtained resources.

The cell to which UE1 currently belongs includes the destination cellUE1 hand-over to, or the cell to which UE1 belongs when UE1 was switchedon.

In this embodiment, the information of UE1 includes one of or acombination of: an identifier, a serving code and service information ofapplication layer of UE1; when UE1 is in demand of service, theinformation of UE1 further includes the demand information of UE1.

Herein the identifier of UE1 includes one of or a combination of: anapplication layer identifier, a physical identifier, a NAS ID and an ASID of UE1.

For example, the application layer identifier may be a user name of UE1which is represented by one of or a combination of: a character string,a number, and a character; physical identifier may be: a particular codesequence, such as IMS; the NAS ID may be an s-TMSI or a GUTI, if UE1 isin idle state, the old s-TMSI or GUTI stored at the last time may beused; if UE1 is in connection state, the current s-TMSI or GUTI may beused; the AS ID may be a C-RNTI or a D-RNTI (i.e., the RNTI used for theD2D function).

The service information of application layer includes the serviceinformation that can be interpreted by a user, the service informationthat can be interpreted by a user includes service type and/or servicecontent, for instance, the service content may be advertisinginformation, a video of a movie or a game, and the like.

The serving code may be a character, a character string, or a numbersequence, and the serving code is used for indicating the serviceinformation of application layer.

The demand information may be information such as ‘want to rent’ or‘want to buy’.

Furthermore, in this embodiment, the information of UE1 may furtherinclude information of the serving cell and/or the serving base stationof UE1, herein the information of the serving cell and/or the servingbase station of UE1 includes information such as the identifier of theserving cell and/or the serving base station of UE1, and the D2Dcapability information of the serving base station of UE1.

Similarly, UE2, which supports a D2D function, also performs the sameoperations with UE1, including obtaining resources for broadcastinginformation of UE2 at the cell to which UE2 currently belongs, andbroadcasts information of UE2 on the obtained resources. The informationof UE2 includes the same content with that included in the informationof UE1, which will not be repeated herein.

Step 502: When UE2 learns, through sensing technology or throughsearching and measuring other UE supporting the D2D function, that UE1which can be possibly matched exists, UE2 determines whether thecommunication matching with UE1 needs to be performed according to theinformation of UE1 that is broadcast by the UE1, if UE2 determines thatthe communication matching with UE1 needs to be performed, UE2 sends aconnection establishment message to the serving base station of a cellto which UE2 currently belongs, the connection establishment messagecarries D2D establishment type information, the identifier of UE2, theidentifier of UE1, and information of the serving cell and/or theserving base station of UE1.

For example, assuming that UE2 needs to obtain information of a certaingame, and if the service information of application layer of UE1 whichis broadcasted by UE1 includes the information of the game that UE2needs to obtain, UE2 determines that the communication matching with UE1needs to be performed; conversely, if the service information ofapplication layer of UE1 which is broadcasted by UE1 does not includethe information of the game that UE2 needs to obtain, UE2 determinesthat the communication matching with UE1 does not need to be performed.

In this embodiment, if it is determined that the communication matchingwith UE1 does not need to be performed, UE2 determines not to start theD2D connection establishment process; in converse, if it is determinedthat the communication matching with UE1 needs to be performed, UE2determines to start D2D connection establishment process, that is, tosend a connection establishment message to the serving base station of acell to which UE2 currently belongs.

Step 503: The serving base station of a cell to which UE2 currentlybelongs determines that the communication matching with UE1 issuccessful according to the connection establishment message and thetype information of the D2D capability supported by the serving basestation itself.

The type information of the D2D capability may be: the serving basestation of the cell to which UE2 currently belongs supports a D2Dcommunication function between UE2 and another UE, besides UE2, which isin the cell to which UE2 currently belongs; or the serving base stationof the cell to which UE2 currently belongs supports a D2D communicationfunction between UE2 and another UE which is in another cell, besidesthe cell to which UE2 currently belongs, served by the serving basestation of the cell to which UE2 currently belongs; or the serving basestation of the cell to which UE2 currently belongs supports a D2Dcommunication function between UE2 and another UE which is served by anyother base station except the serving base station of the cell to whichUE2 currently belongs; or the serving base station of the cell to whichUE2 currently belongs supports a D2D communication function between UE2and another UE which is served by one of limited base stations exceptthe serving base station of the cell to which UE2 currently belongs; orthe serving base station of the cell to which UE2 currently belongssupports a D2D communication function between UE2 and any UE which is inanother radio access system except a radio access system to which UE2belongs; where, the statement that the serving base station of the cellto which UE2 currently belongs supports a D2D communication functionbetween UE2 and another UE which is served by one of limited basestations except the serving base station of the cell to which UE2currently belongs, means that the serving base station of the cell towhich UE2 currently belongs supports only the D2D connection between UE2and a UE which is served by a base station in a range of at least one oflimited base stations, except the serving base station of the cell towhich UE2 currently belongs, when the serving base station of the cellto which UE2 currently belongs supports the D2D communication functionbetween UE2 and another UE which is served by one of limited basestations except the serving base station of the cell to which UE2currently belongs, the serving base station of the cell to which UE2currently belongs needs to provide a list of base stations which can bepossibly matched.

For example, if the D2D capability type information of the serving basestation of the cell to which UE2 currently belongs is that the servingbase station of the cell to which UE2 currently belongs supports a D2Dcommunication function between UE2 and another UE, besides UE2, which isin the cell to which UE2 currently belongs, or the serving base stationof the cell to which UE2 currently belongs supports a D2D communicationfunction between UE2 and another UE which is in another cell, besidesthe cell to which UE2 currently belongs, served by the serving basestation of the cell to which UE2 currently belongs, while the servingbase station of UE1 and the serving base station of the cell to whichUE2 currently belongs are different, UE2 determines that thecommunication matching with UE1 fails; while the serving base station ofUE1 is the same with the serving base station of the cell to which UE2currently belongs, UE2 determines that the communication matching withUE1 succeeds.

Furthermore, after determining that the communication matching with UE1succeeds, the D2D connection establishment process continues. UE1, UE2,the serving base station to which UE2 currently belongs, MME, and corenetwork equipment interact to complete the process of establishing Udbearer.

According to the above embodiment, the communication matching betweenthe user equipments which support the D2D function can be performedaccording to the information of the user equipment and the capability ofthe base station, thereby avoiding the problems that the D2Dcommunication matching procedure fails or becomes abnormal because thebase station does not support the D2D capability or the base station haslimited capability of supporting D2D, thus the success rate ofcommunication matching can be improved.

FIG. 6 is a schematic flowchart of a communication matching methodaccording to another embodiment of the present invention. As shown inFIG. 6, the communication matching method may include:

Step 601: UE1, which supports a D2D function, obtains resources forbroadcasting information of UE1 at the cell to which UE1 currentlybelongs, and broadcasts information of UE1 on the obtained resources.

The cell to which UE1 currently belongs includes the destination cellUE1 hand-over to, or the cell to which UE1 belongs when UE1 was switchedon.

In this embodiment, the information of UE1 includes one of or acombination of: an identifier, a serving code and service information ofapplication layer of UE1; when UE1 is in demand of service, theinformation of UE1 further includes the demand information of UE1.

Herein the identifier of UE1 includes one of or a combination of: anapplication layer identifier, a physical identifier, a NAS ID and an ASID of UE1.

For example, the application layer identifier may be a user name of UE1which is represented by one of or a combination of: a character string,a number, and a character; physical identifier may be: a particular codesequence, such as IMS; the NAS ID may be an s-TMSI or a GUTI, if UE1 isin idle state, the old s-TMSI or GUTI stored at the last time may beused; if UE1 is in connection state, the current s-TMSI or GUTI may beused; the AS ID may be a C-RNTI or a D-RNTI (i.e., the RNTI used for theD2D function).

The service information of application layer includes the serviceinformation that can be interpreted by a user, the service informationthat can be interpreted by a user includes service type and/or servicecontent, for instance, the service content may be advertisinginformation, a video of a movie or a game, and the like.

The serving code may be a character, a character string, or a numbersequence, and the serving code is used for indicating the serviceinformation of application layer.

The demand information may be information such as ‘want to rent’ or‘want to buy’.

Similarly, UE2, which supports a D2D function, also performs the sameoperations with UE1, including obtaining resources for broadcastinginformation of UE2 at the cell to which UE2 currently belongs, andbroadcasts information of UE2 on the obtained resources. The informationof UE2 includes the same content with that included in the informationof UE1, which will not be repeated herein.

Step 602: When UE2 learns, through sensing technology or throughsearching and measuring other UE supporting the D2D function, that UE1which can be possibly matched exists, UE2 determines whether thecommunication matching with UE1 needs to be performed according to theinformation of UE1 that is broadcast by the UE1, if UE2 determines thatthe communication matching with UE1 needs to be performed, UE2 sends aconnection establishment message to the serving base station of a cellto which UE2 currently belongs, the connection establishment messagecarries D2D establishment type information, the identifier of UE2 andthe identifier of UE1.

For example, assuming that UE2 needs to obtain information of a certaingame, and if the service information of application layer of UE1 whichis broadcasted by UE1 includes the information of the game that UE2needs to obtain, UE2 determines that the communication matching with UE1needs to be performed; conversely, if the service information ofapplication layer of UE1 which is broadcasted by UE1 does not includethe information of the game that UE2 needs to obtain, UE2 determinesthat the communication matching with UE1 does not need to be performed.Of course this is only an example of determining by UE2 whether thecommunication matching with UE1 needs to be performed, the presentinvention is not limited thereto, and UE2 may also determine whether thecommunication matching with UE1 needs to be performed according to otherinformation of the information of UE1, for example, the applicationlayer identifier of UE1, and the like, which will not be limited herein.

In this embodiment, if it is determined that the communication matchingwith UE1 does not need to be performed, UE2 determines not to start theD2D connection establishment process; in converse, if it is determinedthat the communication matching with UE1 needs to be performed, UE2determines to start D2D connection establishment process, that is, tosend a connection establishment message to the serving base station of acell to which UE2 currently belongs.

Step 603: The serving base station of a cell to which UE2 currentlybelongs firstly searches the identifier of UE1 from the user equipmentcontext stored in the base station itself, and performs thecommunication matching between UE1 and UE2 according to the searchingresult.

Specifically, if the serving base station of the cell to which UE2currently belongs finds the identifier of UE1 in the user equipmentcontext stored in the base station itself, the serving base station ofthe cell to which UE2 currently belongs determines that the serving basestation itself is the serving base station of UE1, and determines thatthe communication matching between UE1 and UE2 is successful, accordingto the type information of the D2D capability supported by the servingbase station itself.

If the serving base station of the cell to which UE2 currently belongsdoes not find the identifier of UE1 in the user equipment context storedin the base station itself, the serving base station of the cell towhich UE2 currently belongs determines that the serving base stationitself is not the serving base station of UE1, and then the serving basestation of the cell to which UE2 currently belongs queries to a corenetwork device (such as a UE location data server) to obtain informationof the serving base station of UE1, herein the information of theserving base station of UE1 includes the identifier of the serving basestation of UE1 and the D2D capability information of the serving basestation of UE1; then the serving base station of the cell to which UE2currently belongs determines that the communication matching between thesecond user equipment and UE1 is successful, according to theinformation of the serving base station of UE1 and the type informationof the D2D capability supported by the serving base station of the cellto which UE2 currently belongs.

For example, if the D2D capability type information of the serving basestation of the cell to which UE2 currently belongs is that the servingbase station of the cell to which UE2 currently belongs supports a D2Dcommunication function between UE2 and another UE, besides UE2, which isin the cell to which UE2 currently belongs, or the serving base stationof the cell to which UE2 currently belongs supports a D2D communicationfunction between UE2 and another UE which is in another cell, besidesthe cell to which UE2 currently belongs, served by the serving basestation of the cell to which UE2 currently belongs, while the servingbase station of UE1 and the serving base station of the cell to whichUE2 currently belongs are different, UE2 determines that UE1 does notsatisfy the communication matching condition, and then determines thatthe communication matching between UE1 and UE2 fails; while the servingbase station of UE1 is the same with the serving base station of thecell to which UE2 currently belongs, UE2 determines that UE1 satisfiesthe communication matching condition, and then determines that thecommunication matching between UE1 and UE2 succeeds.

In addition, after determining that the communication matching with UE1succeeds, the D2D connection establishment process continues. UE1, UE2,the serving base station of the cell to which UE2 currently belongs,MME, and core network equipment interact to complete the process ofestablishing Ud bearer.

According to the above embodiment, the communication matching betweenthe user equipments which support the D2D function can be performedaccording to the information of the user equipment and the capability ofthe base station, thereby avoiding the problems that the D2Dcommunication matching procedure fails or becomes abnormal because thebase station does not support the D2D capability or the base station haslimited capability of supporting D2D, thus the success rate ofcommunication matching can be improved

Persons of ordinary skill in the art may understand that all or a partof the steps of the methods according to embodiments of the presentinvention may be implemented by a program instructing relevant hardware.The program may be stored in a computer readable storage medium. Whenthe program runs, the steps of the methods according to the embodimentsare performed. The storage medium may be any medium that is capable ofstoring program codes, such as a ROM, a RAM, a magnetic disk, or anoptical disk.

FIG. 7 is a schematic structural diagram of a user equipment accordingto an embodiment of the present invention, the user equipment in thisembodiment is the second user equipment which supports the D2D function,and can implement the process according to the embodiment of the presentinvention as shown in FIG. 1. Referring to FIG. 7, the user equipmentmay include: an obtaining module 71, a determining module 72, and acommunication matching module 73.

The obtaining module 71 is configured to obtain D2D capabilityinformation of a serving base station of a cell to which the second userequipment currently belongs, and to obtain information, which isbroadcasted by a first user equipment supporting the D2D function, ofthe first user equipment after the determining module 72 determines thatthe cell to which the second user equipment currently belongs supportsthe D2D function according to the D2D information. Specifically, theobtaining module 71 may receive a broadcast message sent by the servingbase station of the cell to which the second user equipment currentlybelongs, where the broadcast message carries the D2D capabilityinformation; or receive a radio resource control connection message sentby the serving base station of the cell to which the second userequipment currently belongs, in a process of establishing an RRCconnection between the second user equipment and the serving basestation of the cell to which the second user equipment currentlybelongs, where the RRC connection message carries the D2D capabilityinformation.

The determining module 72 is configured to determine that the cell towhich the second user equipment currently belongs supports the D2Dfunction according to the D2D information that the obtaining module 71obtained. Specifically, the determining module 72 may determine that thecell to which the second user equipment currently belongs supports theD2D function when the D2D capability information indicates that theserving base station of the cell to which the second user equipmentcurrently belongs supports the D2D function.

The communication matching module 73 is configured to performcommunication matching with the first user equipment according to theinformation of the first user equipment obtained by the obtaining module71 and the D2D capability information of the serving base station of thecell to which the second user equipment currently belongs obtained bythe obtaining module 71.

In this embodiment, the D2D capability information is used forindicating whether the serving base station of the cell to which thesecond user equipment currently belongs supports the D2D function; ifthe D2D capability information indicates that the serving base stationof the cell to which the second user equipment currently belongssupports the D2D function, the D2D capability information furtherincludes the type information of the D2D capability supported by theserving base station of the cell to which the second user equipmentcurrently belongs.

The type information of the D2D capability may include: the serving basestation of the cell to which the second user equipment currently belongssupports a D2D communication function between the second user equipmentand another user equipment, besides the second user equipment, which isin the cell to which the second user equipment currently belongs; or theserving base station of the cell to which the second user equipmentcurrently belongs supports a D2D communication function between thesecond user equipment and another user equipment which is in anothercell, besides the cell to which the second user equipment currentlybelongs, served by the serving base station of the cell to which thesecond user equipment currently belongs; or the serving base station ofthe cell to which the second user equipment currently belongs supports aD2D communication function between the second user equipment and anotheruser equipment which is served by any other base station except theserving base station of the cell to which the second user equipmentcurrently belongs; or the serving base station of the cell to which thesecond user equipment currently belongs supports a D2D communicationfunction between the second user equipment and another user equipmentwhich is served by one of limited base stations except the serving basestation of the cell to which the second user equipment currentlybelongs; or the serving base station of the cell to which the seconduser equipment currently belongs supports a D2D communication functionbetween the second user equipment and any user equipment which is inanother radio access system except a radio access system to which thesecond user equipment belongs; where, the statement that the servingbase station of the cell to which the second user equipment currentlybelongs supports a D2D communication function between the second userequipment and another user equipment which is served by one of limitedbase stations except the serving base station of the cell to which thesecond user equipment currently belongs, means that the serving basestation of the cell to which the second user equipment currently belongssupports only the D2D connection between the second user equipment and auser equipment which is served by a base station in a range of at leastone of limited base stations, except the serving base station of thecell to which the second user equipment currently belongs, when theserving base station of the cell to which the second user equipmentcurrently belongs supports the D2D communication function between thesecond user equipment and another user equipment which is served by oneof limited base stations except the serving base station of the cell towhich the second user equipment currently belongs, the serving basestation of the cell to which the second user equipment currently belongsneeds to provide a list of base stations which can be possibly matched.

According to the above user equipment, the communication matchingbetween the user equipments which support the D2D function can beperformed according to the information of the user equipment and thecapability of the base station, thereby avoiding the problems that theD2D communication matching procedure has failed or becomes abnormalbecause the base station does not support the D2D capability or the basestation has limited capability of supporting D2D, thus the success rateof communication matching can be improved.

FIG. 8 is a schematic structural diagram of a user equipment accordingto another embodiment of the present invention, comparing to the userequipment shown in FIG. 7, the difference is that, in an implementationof this embodiment, the communication matching module 73 may determinewhether the communication matching with the first user equipment needsto be performed according to the information of the first userequipment; if it is determined that the communication matching with thefirst user equipment needs to be performed, the communication matchingmodule 73 determines that the communication matching with the first userequipment is successful, according to the information of the servingcell and/or the serving base station of the first user equipment, andthe type information of the D2D capability supported by the serving basestation of the cell to which the second user equipment currentlybelongs.

In another implementation of this embodiment, the user equipment shownin FIG. 8 may further include:

a descrambling module 74, configured to perform descrambling to thephysical identifier of the first user equipment in the information ofthe first user equipment, by using the identifier of the serving cell orthe identifier of the serving base station of the second user equipment,or by using an identifier of a neighboring cell or a neighboring basestation of the second user equipment, and then obtain the identifier ofthe serving cell and/or the serving base station of the first userequipment.

In this case, the communication matching module 73 may determine whetherthe first user equipment satisfies a communication matching condition,according to the identifier of the serving cell and/or the serving basestation of the first user equipment, and the type information of the D2Dcapability supported by the serving base station of the cell to whichthe second user equipment currently belongs; and determine whether thecommunication matching with the first user equipment needs to beperformed according to the information of the first user equipment if itis determined that the first user equipment satisfies the communicationmatching condition; and determine that the communication matching withthe first user equipment is successful if it is determined that thecommunication matching with the first user equipment needs to beperformed.

According to the above user equipment, the communication matchingbetween the user equipments which support the D2D function can beperformed according to the information of the user equipment and thecapability of the base station, thereby avoiding the problems that theD2D communication matching procedure has failed or becomes abnormalbecause the base station does not support the D2D capability or the basestation has limited capability of supporting D2D, thus the success rateof communication matching can be improved.

FIG. 9 is a schematic structural diagram of a base station according toan embodiment of the present invention, the base station in thisembodiment is the serving base station of a cell to which the seconduser equipment currently belongs, and can implement the processaccording to the embodiment of the present invention shown in FIG. 2.Referring to FIG. 9, the base station may include: a receiving module 91and a matching module 92.

The receiving module 91 is configured to receive a connectionestablishment message sent by the second user equipment, wherein theconnection establishment message is sent to the serving base station ofthe cell to which the second user equipment currently belongs after thesecond user equipment determines that communication matching with afirst user equipment needs to be performed according to information ofthe first user equipment supporting the D2D function.

In this embodiment, the information of the first user equipment includesone of or a combination of: an identifier, a serving code and serviceinformation of application layer of the first user equipment; when thefirst user equipment is in demand of service, the information of thefirst user equipment further includes the demand information of thefirst user equipment.

Herein the identifier of the first user equipment includes one of or acombination of: an application layer identifier, a physical identifier,a NAS ID and an AS ID of the first user equipment.

For example, the application layer identifier may be a user name of thefirst user equipment which is represented by one of or a combination of:a character string, a number, and a character; physical identifier maybe: a particular code sequence, such as IMSI; the NAS ID may be ans-TMSI or a GUTI, if the first user equipment is in idle state, the olds-TMSI or GUTI stored at the last time may be used; if the first userequipment is in connection state, the current s-TMSI or GUTI may beused; the AS ID may be a C-RNTI or a D-RNTI (i.e., the RNTI used for theD2D function).

The service information of application layer includes the serviceinformation that can be interpreted by a user, the service informationthat can be interpreted by a user includes service type and/or servicecontent, for instance, the service content may be advertisinginformation, a video of a movie or a game, and the like.

The serving code may be a character, a character string, or a numbersequence, and the serving code is used for indicating the serviceinformation of application layer.

The demand information may be information such as ‘want to rent’ or‘want to buy’.

The matching module 92 is configured to perform the communicationmatching between the second user equipment and the first user equipment,according to the connection establishment message received by thereceiving module and type information of a D2D capability supported bythe serving base station of the cell to which the second user equipmentcurrently belongs.

The type information of the D2D capability may include: the serving basestation of the cell to which the second user equipment currently belongssupports a D2D communication function between the second user equipmentand another user equipment, besides the second user equipment, which isin the cell to which the second user equipment currently belongs; or theserving base station of the cell to which the second user equipmentcurrently belongs supports a D2D communication function between thesecond user equipment and another user equipment which is in anothercell, besides the cell to which the second user equipment currentlybelongs, served by the serving base station of the cell to which thesecond user equipment currently belongs; or the serving base station ofthe cell to which the second user equipment currently belongs supports aD2D communication function between the second user equipment and anotheruser equipment which is served by any other base station except theserving base station of the cell to which the second user equipmentcurrently belongs; or the serving base station of the cell to which thesecond user equipment currently belongs supports a D2D communicationfunction between the second user equipment and another user equipmentwhich is served by one of limited base stations except the serving basestation of the cell to which the second user equipment currentlybelongs; or the serving base station of the cell to which the seconduser equipment currently belongs supports a D2D communication functionbetween the second user equipment and any user equipment which is inanother radio access system except a radio access system to which thesecond user equipment belongs; where, the statement that the servingbase station of the cell to which the second user equipment currentlybelongs supports a D2D communication function between the second userequipment and another user equipment which is served by one of limitedbase stations except the serving base station of the cell to which thesecond user equipment currently belongs, means that the serving basestation of the cell to which the second user equipment currently belongssupports only the D2D connection between the second user equipment and auser equipment which is served by a base station in a range of at leastone of limited base stations, except the serving base station of thecell to which the second user equipment currently belongs, when theserving base station of the cell to which the second user equipmentcurrently belongs supports the D2D communication function between thesecond user equipment and another user equipment which is served by oneof limited base stations except the serving base station of the cell towhich the second user equipment currently belongs, the serving basestation of the cell to which the second user equipment currently belongsneeds to provide a list of base stations which can be possibly matched.

According to the above base station, the communication matching betweenthe user equipments which support the D2D function can be performedaccording to the information of the user equipment and the capability ofthe base station, thereby avoiding the problems that the D2Dcommunication matching procedure has failed or becomes abnormal becausethe base station does not support the D2D capability or the base stationhas limited capability of supporting D2D, thus the success rate ofcommunication matching can be improved

FIG. 10 is a schematic structural diagram of a base station according toanother embodiment of the present invention, comparing to the basestation shown in FIG. 9, the difference is that, in an implementation ofthis embodiment, when the information of the first user equipmentfurther includes information of the serving cell and/or the serving basestation of the first user equipment, and the above connectionestablishment message carries D2D establishment type information, theidentifier of the second user equipment, the identifier of the firstuser equipment, and information of the serving cell and/or the servingbase station of the first user equipment, the matching module 92 maydetermine that the communication matching between the first userequipment and the second user equipment is successful, according to theinformation of the serving cell and/or the serving base station of thefirst user equipment carried in the connection establishment message,and the type information of the D2D capability supported by the servingbase station of the cell to which the second user equipment currentlybelongs.

In another implementation of this embodiment, the matching module 92 mayinclude: a searching sub-module 921, a determining-sub-module 922, and aquerying sub-module 923. In this implementation, the above connectionestablishment message carries D2D establishment type information, theidentifier of the second user equipment, the identifier of the firstuser equipment.

Herein, the searching sub-module 921 is configured to search theidentifier of the first user equipment from a user equipment contextstored in the base station.

The determining sub-module 922 is configured to determine that the basestation is the serving base station of the first user equipment afterthe searching sub-module finds the identifier of the first userequipment, and to determine that the communication matching between thesecond user equipment and the first user equipment is successful,according to the type information of the D2D capability supported by theserving base station of the cell to which the second user equipmentcurrently belongs.

The determining sub-module 922 is further configured to determine thatthe base station is not the serving base station of the first userequipment after the searching sub-module 921 does not find theidentifier of the first user equipment in the user equipment contextstored in the base station.

The querying sub-module 923 is configured to query to a core networkdevice to obtain information of the serving base station of the firstuser equipment, after the determining sub-module 922 determines that thebase station is not the serving base station of the first userequipment.

In this case, the determining sub-module 922 is further configured todetermine that the communication matching between the first userequipment and the second user equipment is successful, according to theinformation of the serving base station of the first user equipment andthe type information of the D2D capability supported by the serving basestation of the cell to which the second user equipment currentlybelongs.

According to the above base station, the communication matching betweenthe user equipments which support the D2D function can be performedaccording to the information of the user equipment and the capability ofthe base station, thereby avoiding the problems that the D2Dcommunication matching procedure has failed or becomes abnormal becausethe base station does not support the D2D capability or the base stationhas limited capability of supporting D2D, thus the success rate ofcommunication matching can be improved.

Persons of ordinary skill in the art may understand that the drawing isonly a schematic diagram of a preferred embodiment, the modules orprocesses in the drawing may not be necessary to implement the presentinvention.

Persons of ordinary skill in the art may understand that the modules ofthe apparatus of an embodiment may distributed in the apparatus of theembodiment as described in the embodiment, may also be adjustedappropriately and may be placed in one or a plurality of apparatusdifferent from that of the embodiment. The foregoing modules may becombined to be one module, and may also be divided into a plurality ofsub-modules.

Finally, it should be noted that the foregoing embodiments are merelyintended for describing the technical solutions of the present inventionother than limiting the present invention. Although the presentinvention is described in detail with reference to the foregoingembodiments, persons of ordinary skill in the art should understand thatthey may still make modifications to the technical solutions describedin the foregoing embodiments or make equivalent substitutions to sometechnical features thereof, without departing from the scope of thetechnical solutions of embodiments of the present invention.

What is claimed is:
 1. A second user equipment supporting device todevice (D2D) functionality, comprising: a non-transitorycomputer-readable medium configured for storing processor-executableinstructions; and a processor, configured to execute theprocessor-executable instructions for facilitating the following:obtaining D2D capability information of a serving base station of a cellto which the second user equipment belongs; obtaining information, whichis broadcasted by a first user equipment supporting D2D functionality,of the first user equipment after determining that the cell to which thesecond user equipment belongs supports D2D functionality based on theD2D capability information; and performing communication matching withthe first user equipment based on the information of the first userequipment and the D2D capability information, wherein the information ofthe first user equipment comprises an identifier of the first userequipment, and one of or a combination of: a serving code of the firstuser equipment, and service information of an application layer of thefirst user equipment; and wherein the identifier of the first userequipment comprises an access stratum identifier of the first userequipment.
 2. The second user equipment according to claim 1, whereinobtaining the D2D capability information comprises: receiving abroadcast message sent by the serving base station of the cell to whichthe second user equipment belongs, wherein the broadcast message carriesthe D2D capability information.
 3. The second user equipment accordingto claim 2, wherein the D2D capability information indicates whether theserving base station of the cell to which the second user equipmentbelongs supports D2D functionality.
 4. The second user equipmentaccording to claim 1, wherein, when the first user equipment is indemand of service, the information of the first user equipment furthercomprises demand information of the first user equipment.
 5. The seconduser equipment according to claim 1, wherein the serving code of thefirst user equipment identifies the service information of theapplication layer of the first user equipment.
 6. The second userequipment according to claim 1, wherein the information of the firstuser equipment further comprises information of the serving cell and/orthe serving base station of the first user equipment; wherein, when theD2D capability information indicates that the serving base station ofthe cell to which the second user equipment belongs supports D2Dfunctionality, the D2D capability information further comprises typeinformation of the D2D functionality supported by the serving basestation of the cell to which the second user equipment belongs; whereinthe communication matching with the first user equipment comprises:determining that communication matching with the first user equipmentneeds to be performed according to the information of the first userequipment; and determining that the communication matching with thefirst user equipment is successful, based on the information of theserving cell and/or the serving base station of the first userequipment.
 7. The second user equipment according to claim 1, whereinthe identifier of the first user equipment comprises the physicalidentifier of the first user equipment, and one of or a combination of:the application layer identifier of the first user equipment, thenon-access stratum identifier of the first user equipment and the accessstratum identifier of the first user equipment; wherein the physicalidentifier is scrambled by using the identifier of the serving celland/or the serving base station of the first user equipment; and whereinthe processor is further configured to execute the processor-executableinstructions for facilitating, before performing the communicationmatching: performing descrambling to the physical identifier of thefirst user equipment in the information of the first user equipment, byusing the identifier of the serving cell or the identifier of theserving base station of the second user equipment, or by using anidentifier of a neighboring cell or a neighboring base station of thesecond user equipment, and then obtaining the identifier of the servingcell and/or the serving base station of the first user equipment.
 8. Thesecond user equipment according to claim 1, wherein, the D2D capabilityinformation indicates that the serving base station of the cell to whichthe second user equipment belongs supports D2D functionality, whereinperforming the communication matching further comprises: determiningwhether the communication matching with the first user equipment needsto be performed based on the information of the first user equipment;and determining, in response to determining that the communicationmatching with the first user equipment needs to be performed, that thecommunication matching with the first user equipment is successful. 9.The second user equipment according to claim 1, wherein the first userequipment broadcasting the information of the first user equipmentincludes the first equipment being configured for: obtaining, by thefirst user equipment, D2D capability information of a serving basestation of a cell to which the first user equipment belongs; obtaining,by the first user equipment, a resource for broadcasting the informationof the first user equipment, after determining that the cell to whichthe first user equipment belongs supports D2D functionality according tothe D2D capability information; broadcasting, by the first userequipment, the information of the first user equipment on the obtainedresource.
 10. A serving base station of a cell to which a second userequipment supporting device to device (D2D) functionality belongs,comprising: a non-transitory computer-readable medium configured forstoring processor-executable instructions; and a processor, configuredto execute the processor-executable instructions for facilitating thefollowing: receiving a connection establishment message sent by thesecond user equipment, wherein the connection establishment message isbased on information of a first user equipment supporting D2Dfunctionality; and performing communication matching between the seconduser equipment and a first user equipment, based on the connectionestablishment message and type information of D2D functionalitysupported by the serving base station of the cell to which the seconduser equipment belongs, wherein the information of the first userequipment comprises an identifier of the first user equipment, and oneof or a combination of: a serving code of the first user equipment, andservice information of an application layer of the first user equipment;and wherein the identifier of the first user equipment comprises anaccess stratum identifier of the first user equipment.
 11. The servingbase station according to claim 10, wherein the information of the firstuser equipment further comprises demand information of the first userequipment when the first user equipment is in demand of service.
 12. Theserving base station according to claim 10, wherein the serving code ofthe first user equipment identifies the service information of theapplication layer of the first user equipment.
 13. The serving basestation according to claim 10, wherein the information of the first userequipment further comprises information of a serving cell and/or aserving base station of the first user equipment; wherein the connectionestablishment message carries D2D establishment type information, anidentifier of the second user equipment, the identifier of the firstuser equipment, and information of the serving cell and/or the servingbase station of the first user equipment; wherein performing thecommunication matching further comprises: determining that thecommunication matching between the second user equipment and the firstuser equipment is successful, based on the information of the servingcell and/or the serving base station of the first user equipment carriedin the connection establishment message.
 14. The serving base stationaccording to claim 10, wherein the connection establishment messagecarries D2D establishment type information, an identifier of the seconduser equipment and the identifier of the first user equipment; whereinperforming the communication matching further comprises: searching theidentifier of the first user equipment from a user equipment contextstored in the serving base station; if the identifier of the first userequipment is found, determining that the serving base station is theserving base station of the first user equipment, and determining thatthe communication matching between the second user equipment and thefirst user equipment is successful, based on the type information of theD2D functionality supported by the serving base station of the cell towhich the second user equipment belongs; if the identifier of the firstuser equipment is not found in the user equipment context stored in theserving base station by the serving base station of the cell to whichthe second user equipment belongs, determining that the serving basestation is not the serving base station of the first user equipment, andquerying a core network device to obtain information of the serving basestation of the first user equipment; determining that the communicationmatching between the second user equipment and the first user equipmentis successful, based on the information of the serving base station ofthe first user equipment and the type information of the D2Dfunctionality supported by the serving base station of the cell to whichthe second user equipment belongs.
 15. A communication system,comprising: a non-transitory computer-readable medium configured forstoring processor-executable instructions; and a processor, configuredto execute the processor-executable instructions for facilitating thefollowing: receiving a connection establishment message sent by a seconduser equipment supporting device-to-device (D2D) functionality, whereinthe connection establishment message is sent to a serving base stationof the cell to which the second user equipment belongs by the seconduser equipment after the second user equipment determines thatcommunication matching with a first user equipment supporting D2Dfunctionality needs to be performed according to information of thefirst user equipment; and performing communication matching between thesecond user equipment and the first user equipment, based on theconnection establishment message and type information of D2Dfunctionality supported by the serving base station of the cell to whichthe second user equipment belongs, wherein the information of the firstuser equipment comprises an identifier of the first user equipment, andone of or a combination of: a serving code of the first user equipment,and service information of an application layer of the first userequipment; and wherein the identifier of the first user equipmentcomprises an access stratum identifier of the first user equipment. 16.The communication system according to claim 15, wherein, when the firstuser equipment is in demand of service, the information of the firstuser equipment further comprises demand information of the first userequipment.
 17. The communication system according to claim 15, whereinthe service information of the application layer of the first userequipment comprises service type and/or service content of the firstuser equipment, and wherein the serving code of the first user equipmentidentifies the service information of the application layer of the firstuser equipment.